export type AKDict<T> = { [key: string]: T }
export interface APIResult {
    success: boolean
    value: any
}
export interface ISelectedChar {
    charId: string
    name: string
}

export const fail = (reason: string): APIResult => {
    return { success: false, value: reason }
}
export const success = (value: any): APIResult => {
    return { success: true, value }
}
export const ProfessionNames: AKDict<AKDict<string>> = {
    PIONEER: { zh_CN: '先锋', en_US: 'Vanguard' },
    WARRIOR: { zh_CN: '近卫', en_US: 'Guard' },
    SNIPER:  { zh_CN: '狙击', en_US: 'Sniper' },
    TANK:    { zh_CN: '重装', en_US: 'Defender' },
    MEDIC:   { zh_CN: '医疗', en_US: 'Medic' },
    SUPPORT: { zh_CN: '辅助', en_US: 'Supporter' },
    CASTER:  { zh_CN: '术师', en_US: 'Caster' },
    SPECIAL: { zh_CN: '特种', en_US: 'Specialist' }
    //  "TOKEN": "召唤物",
    //  "TRAP": "装置",
}
export const NewOp: string[] = [
    "char_1023_ghost2",
    "char_4009_irene",
    "char_4042_lumen",
    "char_433_windft"
]
